package com.landiao.ctrler.management;

import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.landiao.ctrler.BaseCRUDCtrler;
import com.landiao.entities.ItemCategory;
import com.landiao.entities.Shop;
import com.landiao.entities.SysConfig;
import com.landiao.entities.Title;
import com.landiao.service.ItemCategoryService;
import com.landiao.service.SysConfigService;
import com.landiao.service.TitleService;

/**
 * 功能说明:系统配置
 *
 */
@Controller
@RequestMapping("/management/itemcategory")
public class ItemCategoryCtrler extends BaseCRUDCtrler<ItemCategory, String> {

	private ItemCategoryService getItemCategoryService() {
        return (ItemCategoryService) baseService;
    }
	
	@ResponseBody
	@RequestMapping("listItemcategory")
	public List<ItemCategory> listItemcategory(ItemCategory itemcategory){
		itemcategory.setCompId(this.getClientUser().getUser().getCompId());
		List<ItemCategory> itemCategorys = this.getItemCategoryService().getItemCategorys(itemcategory);
		return itemCategorys;
	}
}
